package com.pcbly.web.action.dict;

import java.util.List;

import com.pcbly.web.action.BaseAction;
import com.pcbly.web.bean.dict.DictCategoryFilterBean;
import com.pcbly.web.bean.dict.DictCategoryValueBean;
import com.pcbly.web.business.dict.DictCategoryFilterService;

public class DictionaryFilterAction extends BaseAction<DictCategoryFilterBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5609343748560710910L;
	
	private DictCategoryFilterService dictCategoryFilterService;
	
	public List<DictCategoryValueBean> queryDictCategoryValueBeansByMasterValueId(String masterValueId,
			String childId) throws Exception {
		if (log.isDebugEnabled()) {
			log.debug("login queryDictCategoryValueBeansByMasterValueId..........");
			log.debug(masterValueId);
		}
		return dictCategoryFilterService
				.queryDictCategoryValueBeansByMasterValueId(masterValueId,childId);
	}
	
	public List<DictCategoryValueBean> queryDictCategoryValueBeansByBean(
			DictCategoryFilterBean bean) throws Exception {
		if (log.isDebugEnabled()) {
			log.debug("login queryDictCategoryValueBeansByBean..........");
			log.debug(bean.toString());
		}
		List<DictCategoryValueBean> list = dictCategoryFilterService
				.queryDictCategoryValueBeansByBean(bean);
		return list;
	}
	
	public void setDictCategoryFilterService(
			DictCategoryFilterService dictCategoryFilterService) {
		this.dictCategoryFilterService = dictCategoryFilterService;
	}

}
